package cn.jvav.zh.game.logic;

public class Coord{
	public int x, y;

	public Coord(int x, int y){
		this.x = x;
		this.y = y;
	}

	public Coord(Coord coord){
		this.x = coord.x;
		this.y = coord.y;
	}

	@Override
	public boolean equals(Object obj){
		if(obj == this) return true;
		if(obj == null) return false;
		if(obj.getClass() != this.getClass()) return false;
		var coord = (Coord) obj;
		return this.x == coord.x && this.y == coord.y;
	}
}
